<!-- Web service title. -->
<div id="doctitle">
	<h2>CAMA Sales History</h2>
</div>

<!-- Web service location. -->
<div id="doclocation">
	<a href="v2/php-cgi/ws_cama_saleshistory.php">Service URL</a>
</div>

<!-- Brief description of the web service. -->
<div id="docdescription">
	<h3>Description</h3>
	<p>Returns sales history for a parcel ID.</p>
</div>

<!-- Web service input description. Format is a required argument for your web service. -->
<div id="docinput">
	<h3>Service Arguments</h3>
	<table id="doctable">
		<tbody>
			<tr>
				<th>PARAMETER</th>
				<th>DESCRIPTION</th>
			</tr>
			<tr>
				<td>pid</td>
				<td>Parcel ID.</td>
			</tr>
			<tr>
				<td>pidtype</td>
				<td>Type of parcel ID being passed. Value is either 'tax' or 'common'.</td>
			</tr>
			<tr>
				<td>format</td>
				<td>Format for the output. Value is either 'xml' for xml output or
					'json' for JSON output.</td>
			</tr>
		</tbody>
	</table>
</div>

<!-- Web service output. -->
<div id="docoutput">
	<h3>Service Output</h3>
	<!-- If the service output varies (i.e. you have the user pass a list of fields to be returned), just write it varies in a <p> tag and skip the table -->
	<table id="doctable">
		<tbody>
			<tr>
				<th>PARAMETER</th>
				<th>DESCRIPTION</th>
			</tr>
			<tr>
				<td>parcel_id</td>
				<td>Parcel ID.</td>
			</tr>
			<tr>
				<td>common_parcel_id</td>
				<td>Common parcel ID.</td>
			</tr>
			<tr>
				<td>sale_date</td>
				<td>Sale date (m/d/yyyy).</td>
			</tr>
			<tr>
				<td>sale_price</td>
				<td>Sale price in dollars.</td>
			</tr>
			<tr>
				<td>deed_book</td>
				<td>Deed book.</td>
			</tr>
			<tr>
				<td>legal_reference</td>
				<td>Legal reference of sale.</td>
			</tr>
		</tbody>
	</table>
</div>

<!-- Sample service output. -->
<div id="docsample">
	<h3>Sample Output</h3>
	
	<p>Sample XML Output</p>
	<pre>
	&lt;rows total-rows="1"&gt;
	&lt;row&gt;
	&lt;column name="parcel_id"&gt;09910230&lt;/column&gt;
	&lt;column name="common_parcel_id"&gt;09910230&lt;/column&gt;
	&lt;column name="sale_date"&gt;10/24/1975&lt;/column&gt;
	&lt;column name="sale_price"&gt;0&lt;/column&gt;
	&lt;column name="deed_book"&gt;03796 583&lt;/column&gt;
	&lt;column name="legal_reference"&gt;03796-583&lt;/column&gt;
	&lt;/row&gt;
	&lt;/rows&gt;
	</pre>
	
	<p>Sample JSON Output</p>
	<pre>
	{"total_rows":"1","rows":[{"row":{"parcel_id":"09910230","common_parcel_id":"09910230",
	"sale_date":"10/24/1975","sale_price":"0","deed_book":"03796 583",
	"legal_reference":"03796-583"}}]}
	</pre>
</div>